package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.TbOrderComplaintMapper;
import com.ruoyi.order.domain.TbOrderComplaint;
import com.ruoyi.order.service.ITbOrderComplaintService;

/**
 * 疑义账单列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TbOrderComplaintServiceImpl implements ITbOrderComplaintService 
{
    @Autowired
    private TbOrderComplaintMapper tbOrderComplaintMapper;

    /**
     * 查询疑义账单列表
     * 
     * @param complaintId 疑义账单列表主键
     * @return 疑义账单列表
     */
    @Override
    public TbOrderComplaint selectTbOrderComplaintByComplaintId(Long complaintId)
    {
        return tbOrderComplaintMapper.selectTbOrderComplaintByComplaintId(complaintId);
    }

    /**
     * 查询疑义账单列表列表
     * 
     * @param tbOrderComplaint 疑义账单列表
     * @return 疑义账单列表
     */
    @Override
    public List<TbOrderComplaint> selectTbOrderComplaintList(TbOrderComplaint tbOrderComplaint)
    {
        return tbOrderComplaintMapper.selectTbOrderComplaintList(tbOrderComplaint);
    }

    /**
     * 新增疑义账单列表
     * 
     * @param tbOrderComplaint 疑义账单列表
     * @return 结果
     */
    @Override
    public int insertTbOrderComplaint(TbOrderComplaint tbOrderComplaint)
    {
        return tbOrderComplaintMapper.insertTbOrderComplaint(tbOrderComplaint);
    }

    /**
     * 修改疑义账单列表
     * 
     * @param tbOrderComplaint 疑义账单列表
     * @return 结果
     */
    @Override
    public int updateTbOrderComplaint(TbOrderComplaint tbOrderComplaint)
    {
        return tbOrderComplaintMapper.updateTbOrderComplaint(tbOrderComplaint);
    }

    /**
     * 批量删除疑义账单列表
     * 
     * @param complaintIds 需要删除的疑义账单列表主键
     * @return 结果
     */
    @Override
    public int deleteTbOrderComplaintByComplaintIds(Long[] complaintIds)
    {
        return tbOrderComplaintMapper.deleteTbOrderComplaintByComplaintIds(complaintIds);
    }

    /**
     * 删除疑义账单列表信息
     * 
     * @param complaintId 疑义账单列表主键
     * @return 结果
     */
    @Override
    public int deleteTbOrderComplaintByComplaintId(Long complaintId)
    {
        return tbOrderComplaintMapper.deleteTbOrderComplaintByComplaintId(complaintId);
    }
}
